﻿CREATE function [dbo].[fn_BookOfWorkYear]
(
	@year int
)
RETURNS @ret table (ProjectId varchar(30))
AS
BEGIN
	DECLARE @query nvarchar(500) 
	SET @query = N'SELECT ProjectId FROM BookOfWork' + CONVERT(varchar(4), 2014)

	EXEC sp_TimeBookingReport
	RETURN;
END